home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / likene1a / myprog9.frm < prev    next >
Text File  |  1999-09-24  |  2KB  |  88 lines

  1. VERSION 5.00
  2. Begin VB.Form Form8 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "show picture"
  5.    ClientHeight    =   2790
  6.    ClientLeft      =   3645
  7.    ClientTop       =   2235
  8.    ClientWidth     =   4935
  9.    ControlBox      =   0   'False
  10.    LinkTopic       =   "Form2"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   2790
  14.    ScaleWidth      =   4935
  15.    ShowInTaskbar   =   0   'False
  16.    Begin VB.CommandButton Command1 
  17.       Caption         =   "Exit"
  18.       BeginProperty Font 
  19.          Name            =   "Arial"
  20.          Size            =   8.25
  21.          Charset         =   0
  22.          Weight          =   700
  23.          Underline       =   0   'False
  24.          Italic          =   0   'False
  25.          Strikethrough   =   0   'False
  26.       EndProperty
  27.       Height          =   375
  28.       Left            =   0
  29.       TabIndex        =   3
  30.       Top             =   2400
  31.       Width           =   2055
  32.    End
  33.    Begin VB.FileListBox File1 
  34.       Height          =   675
  35.       Left            =   0
  36.       Pattern         =   "*.bmp;*.wmp;*.ico"
  37.       TabIndex        =   2
  38.       Top             =   1680
  39.       Width           =   2055
  40.    End
  41.    Begin VB.DirListBox Dir1 
  42.       Height          =   1215
  43.       Left            =   0
  44.       TabIndex        =   1
  45.       Top             =   360
  46.       Width           =   2055
  47.    End
  48.    Begin VB.DriveListBox Drive1 
  49.       Height          =   315
  50.       Left            =   0
  51.       TabIndex        =   0
  52.       Top             =   0
  53.       Width           =   2055
  54.    End
  55.    Begin VB.Image Image1 
  56.       BorderStyle     =   1  'Fixed Single
  57.       Height          =   2775
  58.       Left            =   2160
  59.       Stretch         =   -1  'True
  60.       Top             =   0
  61.       Width           =   2775
  62.    End
  63. End
  64. Attribute VB_Name = "Form8"
  65. Attribute VB_GlobalNameSpace = False
  66. Attribute VB_Creatable = False
  67. Attribute VB_PredeclaredId = True
  68. Attribute VB_Exposed = False
  69. Private Sub Command1_Click()
  70. Unload Form8
  71. frmmain.Show
  72. End Sub
  73.  
  74. Private Sub Dir1_Change()
  75. File1.Path = Dir1.Path
  76. End Sub
  77.  
  78. Private Sub Drive1_Change()
  79. Dir1.Path = Drive.Drive
  80. End Sub
  81.  
  82. Private Sub File1_Click()
  83. selectedfile = File1.Path & "\" & File1.filename
  84. Image1.Picture = LoadPicture(selectedfile)
  85.  
  86. End Sub
  87.  
  88.